Skip to main content
Version: Upcoming

RiskGroupCounter

V8 Message Definiton

METADATA

AttributeValue
Topic4625-risk-counter
MLink TokenClientTrading
ProductSRTrade
accessTypeSELECT

Table Definition

FieldTypeKeyDefault ValueComment
riskGroupIdCHAR(19)PRI'0000-0000-0000-0000'
accntVARCHAR(16)PRI''
riskFirmVARCHAR(16)PRI''
sysRealmenum - SysRealm'None'
sysEnvironmentenum - SysEnvironment'None'original source sys environment Stable Current etc
riskEngineVARCHAR(32)''EE engine name
changeReasonenum - ChangeReason'None'
optQtyBotIocFilledFLOAT0fills IOC leaves
optQtySldIocFilledFLOAT0fills IOC leaves
ddBotIocFilledFLOAT0fills IOC leaves
ddSldIocFilledFLOAT0fills IOC leaves
veBotIocFilledFLOAT0fills IOC leaves
veSldIocFilledFLOAT0fills IOC leaves
wtVeBotIocFilledFLOAT0fills IOC leaves
wtVeSldIocFilledFLOAT0fills IOC leaves
nvBotIocFilledFLOAT0fills IOC leaves notional value
nvSldIocFilledFLOAT0fills IOC leaves notional value
rm1BotIocFilledFLOAT0fills IOC leaves
rm1SldIocFilledFLOAT0fills IOC leaves
rm2BotIocFilledFLOAT0fills IOC leaves
rm2SldIocFilledFLOAT0fills IOC leaves
rm3BotIocFilledFLOAT0fills IOC leaves
rm3SldIocFilledFLOAT0fills IOC leaves
rm4BotIocFilledFLOAT0fills IOC leaves
rm4SldIocFilledFLOAT0fills IOC leaves
rm5BotIocFilledFLOAT0fills IOC leaves
rm5SldIocFilledFLOAT0fills IOC leaves
rm6BotIocFilledFLOAT0fills IOC leaves
rm6SldIocFilledFLOAT0fills IOC leaves
rm7BotIocFilledFLOAT0fills IOC leaves
rm7SldIocFilledFLOAT0fills IOC leaves
counterINT0
timestampDATETIME(6)'1900-01-01 00:00:00.000000'

PRIMARY KEY DEFINITION (Unique)

FieldSequence
riskGroupId1
accnt2
riskFirm3

CREATE TABLE EXAMPLE QUERY

CREATE TABLE `SRTrade`.`MsgRiskGroupCounter` (
`riskGroupId` CHAR(19) NOT NULL DEFAULT '0000-0000-0000-0000',
`accnt` VARCHAR(16) NOT NULL DEFAULT '',
`riskFirm` VARCHAR(16) NOT NULL DEFAULT '',
`sysRealm` ENUM('None','SysTest','NMS','CME','FR2','LD4','DR') NOT NULL DEFAULT 'None',
`sysEnvironment` ENUM('None','Neptune','Pluto','V7_Stable','V7_Latest','Saturn','Venus','Mars','SysTest','V7_Current') NOT NULL DEFAULT 'None' COMMENT 'original (source) sys environment [Stable, Current, etc]',
`riskEngine` VARCHAR(32) NOT NULL DEFAULT '' COMMENT 'EE engine name',
`changeReason` ENUM('None','ChildOrder','RiskExec','SymRotate','ExpRotate','AccMargin','FutRisk') NOT NULL DEFAULT 'None',
`optQtyBotIocFilled` FLOAT NOT NULL DEFAULT 0 COMMENT 'fills + IOC leaves',
`optQtySldIocFilled` FLOAT NOT NULL DEFAULT 0 COMMENT 'fills + IOC leaves',
`ddBotIocFilled` FLOAT NOT NULL DEFAULT 0 COMMENT 'fills + IOC leaves',
`ddSldIocFilled` FLOAT NOT NULL DEFAULT 0 COMMENT 'fills + IOC leaves',
`veBotIocFilled` FLOAT NOT NULL DEFAULT 0 COMMENT 'fills + IOC leaves',
`veSldIocFilled` FLOAT NOT NULL DEFAULT 0 COMMENT 'fills + IOC leaves',
`wtVeBotIocFilled` FLOAT NOT NULL DEFAULT 0 COMMENT 'fills + IOC leaves',
`wtVeSldIocFilled` FLOAT NOT NULL DEFAULT 0 COMMENT 'fills + IOC leaves',
`nvBotIocFilled` FLOAT NOT NULL DEFAULT 0 COMMENT 'fills + IOC leaves (notional value)',
`nvSldIocFilled` FLOAT NOT NULL DEFAULT 0 COMMENT 'fills + IOC leaves (notional value)',
`rm1BotIocFilled` FLOAT NOT NULL DEFAULT 0 COMMENT 'fills + IOC leaves',
`rm1SldIocFilled` FLOAT NOT NULL DEFAULT 0 COMMENT 'fills + IOC leaves',
`rm2BotIocFilled` FLOAT NOT NULL DEFAULT 0 COMMENT 'fills + IOC leaves',
`rm2SldIocFilled` FLOAT NOT NULL DEFAULT 0 COMMENT 'fills + IOC leaves',
`rm3BotIocFilled` FLOAT NOT NULL DEFAULT 0 COMMENT 'fills + IOC leaves',
`rm3SldIocFilled` FLOAT NOT NULL DEFAULT 0 COMMENT 'fills + IOC leaves',
`rm4BotIocFilled` FLOAT NOT NULL DEFAULT 0 COMMENT 'fills + IOC leaves',
`rm4SldIocFilled` FLOAT NOT NULL DEFAULT 0 COMMENT 'fills + IOC leaves',
`rm5BotIocFilled` FLOAT NOT NULL DEFAULT 0 COMMENT 'fills + IOC leaves',
`rm5SldIocFilled` FLOAT NOT NULL DEFAULT 0 COMMENT 'fills + IOC leaves',
`rm6BotIocFilled` FLOAT NOT NULL DEFAULT 0 COMMENT 'fills + IOC leaves',
`rm6SldIocFilled` FLOAT NOT NULL DEFAULT 0 COMMENT 'fills + IOC leaves',
`rm7BotIocFilled` FLOAT NOT NULL DEFAULT 0 COMMENT 'fills + IOC leaves',
`rm7SldIocFilled` FLOAT NOT NULL DEFAULT 0 COMMENT 'fills + IOC leaves',
`counter` INT NOT NULL DEFAULT 0,
`timestamp` DATETIME(6) NOT NULL DEFAULT '1900-01-01 00:00:00.000000',
CONSTRAINT nonnegative_riskGroupId CHECK(ASCII(riskGroupId) < 56),
PRIMARY KEY USING HASH (`riskGroupId`,`accnt`,`riskFirm`)
) ENGINE=SRSE DEFAULT CHARSET=LATIN1 COMMENT='';

SELECT TABLE EXAMPLE QUERY

SELECT
`riskGroupId`,
`accnt`,
`riskFirm`,
`sysRealm`,
`sysEnvironment`,
`riskEngine`,
`changeReason`,
`optQtyBotIocFilled`,
`optQtySldIocFilled`,
`ddBotIocFilled`,
`ddSldIocFilled`,
`veBotIocFilled`,
`veSldIocFilled`,
`wtVeBotIocFilled`,
`wtVeSldIocFilled`,
`nvBotIocFilled`,
`nvSldIocFilled`,
`rm1BotIocFilled`,
`rm1SldIocFilled`,
`rm2BotIocFilled`,
`rm2SldIocFilled`,
`rm3BotIocFilled`,
`rm3SldIocFilled`,
`rm4BotIocFilled`,
`rm4SldIocFilled`,
`rm5BotIocFilled`,
`rm5SldIocFilled`,
`rm6BotIocFilled`,
`rm6SldIocFilled`,
`rm7BotIocFilled`,
`rm7SldIocFilled`,
`counter`,
`timestamp`
FROM `SRTrade`.`MsgRiskGroupCounter`
WHERE
/* Replace with a CHAR(19) */
`riskGroupId` = 'Example_riskGroupId'
AND
/* Replace with a VARCHAR(16) */
`accnt` = 'Example_accnt'
AND
/* Replace with a VARCHAR(16) */
`riskFirm` = 'Example_riskFirm';

Doc Columns Query

SELECT * FROM SRTrade.doccolumns WHERE TABLE_NAME='RiskGroupCounter' ORDER BY ordinal_position ASC;